package edu.poly.game.control;

public enum GameMode {
	VALIDATION(1, "Validation"), GAMEPLAY(2, "Game Play");
	
	private int ordinal;
	private String name;
	private GameMode(final int ordinal, final String name) {
		this.ordinal = ordinal;
		this.name = name;
	}
	
	public int getOrdinal() {
		return this.ordinal;
	}
	
	public String getName() {
		return this.name;
	}
	
	public static GameMode getGameMode(final int ordinal) {
		switch(ordinal) {
			case 1: return VALIDATION;
			case 2: return GAMEPLAY;
			default: return null;
		}
	}
}
